Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AstroPrint/AstroBox
/ set_extra_headers
Method
set_extra_headers
src/octoprint/server/util.py:327–329 ·
view source on GitHub ↗
(self, path)
Source
from the content-addressed store, hash-verified
325
self.flush()
326
327
def
set_extra_headers(self, path):
328
if
self._as_attachment:
329
self.set_header(
"Content-Disposition"
,
"attachment"
)
330
331
332
##~~ URL Forward Handler for forwarding requests to a preconfigured static URL
Callers
1
get
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected