• Post Reply Bookmark Topic Watch Topic
  • New Topic

Are these two implemetations same about content ty[e

 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

Are these two the same

response.setContentType("image/gif");
response.setHeader("Content-Encoding", "image/gif");

 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Theepan Thevathasan:
Hi folks,

Are these two the same


I think content encoding should have a character set / encoding , not a mime and content type should have the mime type of the response.
 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Content-encoding is something different. if you meant content-type, then yes, they are.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!