You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:sparkles: `[headers]` Support headers for [verb tunnelling](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-odata/bdbabfa6-8c4a-4741-85a9-8d93ffd66c41)
// TUS Headers https://tus.io/protocols/resumable-upload#headers
34
-
HeaderUploadOffset="Upload-Offset"
35
-
HeaderTusVersion="Tus-Version"
36
-
HeaderUploadLength="Upload-Length"
37
-
HeaderTusResumable="Tus-Resumable"
38
-
HeaderTusExtension="Tus-Extension"
39
-
HeaderTusMaxSize="Tus-Max-Size"
34
+
HeaderUploadOffset="Upload-Offset"
35
+
HeaderTusVersion="Tus-Version"
36
+
HeaderUploadLength="Upload-Length"
37
+
HeaderTusResumable="Tus-Resumable"
38
+
HeaderTusExtension="Tus-Extension"
39
+
HeaderTusMaxSize="Tus-Max-Size"
40
+
// Verb tunnelling (see https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-odata/bdbabfa6-8c4a-4741-85a9-8d93ffd66c41)
41
+
// CAUTION see the security risk of supporting such headers https://www.sidechannel.blog/en/http-method-override-what-it-is-and-how-a-pentester-can-use-it/
HeaderUploadMetadata="Upload-Metadata"// See https://tus.io/protocols/resumable-upload#upload-metadata
43
49
HeaderUploadDeferLength="Upload-Defer-Length"// See https://tus.io/protocols/resumable-upload#upload-defer-length
@@ -51,6 +57,8 @@ const (
51
57
)
52
58
53
59
var (
60
+
// VerbTunnellingHeaders defines the non-standard headers which can be used for Verb tunnelling (see https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-odata/bdbabfa6-8c4a-4741-85a9-8d93ffd66c41)
0 commit comments