Changed HttpPrintStream to use a internal stream instead of extending one
This commit is contained in:
parent
a199165756
commit
1684c86a60
13 changed files with 130 additions and 119 deletions
|
|
@ -24,6 +24,7 @@ package zutil.net.ssdp;
|
|||
|
||||
import zutil.net.http.HttpPrintStream;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.InetAddress;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
|
|
@ -135,10 +136,14 @@ public class StandardSSDPInfo implements SSDPServiceInfo, SSDPCustomInfo{
|
|||
|
||||
@Override
|
||||
public void setHeaders(HttpPrintStream http) {
|
||||
if(headers != null) {
|
||||
for (String key : headers.keySet()) {
|
||||
http.setHeader(key, headers.get(key));
|
||||
try {
|
||||
if (headers != null) {
|
||||
for (String key : headers.keySet()) {
|
||||
http.setHeader(key, headers.get(key));
|
||||
}
|
||||
}
|
||||
}catch(IOException e){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue