~cprov/uci-engine/tarmac-multienv

« back to all changes in this revision

Viewing changes to gatekeeper/gatekeeper/resources/v1.py

  • Committer: Evan Dandrea
  • Date: 2014-06-30 12:07:54 UTC
  • mfrom: (630 uci-engine)
  • mto: This revision was merged to the branch mainline in revision 655.
  • Revision ID: evan.dandrea@canonical.com-20140630120754-z6x5eqdahpp2qfrt
Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
            payload = b'{}({})\n'.format(callback, payload)
144
144
        else:
145
145
            payload = b'{}\n'.format(payload)
146
 
        return http.ok([(b'Content-Type', b'application/json')], payload)
 
146
        headers = [
 
147
            (b'Cache-Control', 'max-age=0, no-cache'),
 
148
            (b'Content-Type', b'application/json')
 
149
        ]
 
150
        return http.ok(headers, payload)
147
151
 
148
152
    @resource.child('sandbox/{sandbox_identifier}')
149
153
    def sandbox_wrapper(self, request, segments, sandbox_identifier):