Skip to content

Commit 373248e

Browse files
committed
FIX: update the format of response based on rfc2616
1 parent a9e260b commit 373248e

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)