Optimization in SSDP
This commit is contained in:
parent
0956e4aee3
commit
5fa807e50b
4 changed files with 13 additions and 6 deletions
|
|
@ -262,7 +262,10 @@ public class HttpHeaderParser {
|
|||
StringBuilder tmp = new StringBuilder();
|
||||
tmp.append("{Type: ").append(type);
|
||||
tmp.append(", HTTP_version: HTTP/").append(version);
|
||||
tmp.append(", URL: \"").append(url).append('\"');
|
||||
if(url == null)
|
||||
tmp.append(", URL: null");
|
||||
else
|
||||
tmp.append(", URL: \"").append(url).append('\"');
|
||||
|
||||
tmp.append(", URL_attr: { ");
|
||||
for( String key : url_attr.keySet() ){
|
||||
|
|
|
|||
|
|
@ -321,7 +321,10 @@ public class HttpPrintStream extends OutputStream{
|
|||
if (res_status_code != null) {
|
||||
if (message_type == HttpMessageType.REQUEST) {
|
||||
str.append(", req_type: ").append(req_type);
|
||||
str.append(", req_url: \"").append(req_url).append('\"');
|
||||
if(req_url == null)
|
||||
str.append(", req_url: null");
|
||||
else
|
||||
str.append(", req_url: \"").append(req_url).append('\"');
|
||||
} else {
|
||||
str.append(", status_code: ").append(res_status_code);
|
||||
str.append(", status_str: ").append(getStatusString(res_status_code));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue