Skip to content

Commit 433a31c

Browse files
authored
Merge pull request #2140 from sswguo/httprox_fix
FIX: update the format of response based on rfc2616
2 parents 29de1b3 + 373248e commit 433a31c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addons/httprox/common/src/main/java/org/commonjava/indy/httprox/handler/ProxyResponseWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private void doHandleEvent( final ConduitStreamSinkChannel sinkChannel )
268268
PROXY_AUTHENTICATION_REQUIRED, proxy_authenticate, realmInfo );
269269

270270
http.writeStatus( PROXY_AUTHENTICATION_REQUIRED );
271-
http.writeHeader( proxy_authenticate, realmInfo );
271+
http.writeHeader( proxy_authenticate, String.format( "%s\n", realmInfo ) );
272272
}
273273
else
274274
{

0 commit comments

Comments
 (0)