Mercurial Hosting > luan
changeset 1614:557bb90b70d7
fix BasicAuthHandler bug
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 25 May 2021 13:21:31 -0600 |
parents | 92beba8bf1c8 |
children | 38894708bade |
files | src/goodjava/webserver/handlers/BasicAuthHandler.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
diff -r 92beba8bf1c8 -r 557bb90b70d7 src/goodjava/webserver/handlers/BasicAuthHandler.java --- a/src/goodjava/webserver/handlers/BasicAuthHandler.java Mon May 24 22:30:17 2021 -0600 +++ b/src/goodjava/webserver/handlers/BasicAuthHandler.java Tue May 25 13:21:31 2021 -0600 @@ -33,7 +33,8 @@ if( a.length!=2 || !a[0].equals("Basic") || !a[1].equals(match) ) return unauthorized(); Response response = handler.handle(request); - response.headers.put("X-Accel-Expires","0"); + if( response != null ) + response.headers.put("X-Accel-Expires","0"); return response; } }