• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deleting response header

 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can somebody qualify what is behavior of a call resp.setHeader("my-header", null);?
My intension is to delete some headers set. Is any other way to do that?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35743
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think you can delete a header once it is set. You could create a wrapper for the response object that intercepts the set statement though.
 
Neeraj Dheer
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or probably a redirect so that the response headers are un-set due to the redirect?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!