Re: [viewvc-users] Is there a way to add HTTP headers when a page is generated?
"C. Michael Pilato" <[email protected]> Mon, 19 Jan 2015 14:47:12 -0500
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
On 01/19/2015 02:27 PM, Miles O'Neal wrote: > We have an application for viewvc that requires us to generate additional HTTP headers on some pages. I would prefer to do this in the code but it's not obvious there's a way to do this. Am I correct that I would need to do this at the HTTP server config level rather than in viewvc? Check out the get_writeready_server_file() function in lib/viewvc.py. Pretty much all of ViewVC's output run through this function, and it would probably be the best place to add your custom header through the use of request.server.addheader(). -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Enterprise Cloud Development ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3094475 To unsubscribe from this discussion, e-mail: [[email protected]].