mirror of
https://github.com/fosrl/badger.git
synced 2026-02-07 21:46:43 +00:00
strip headers, change display name, add icon
This commit is contained in:
BIN
.assets/icon.png
Normal file
BIN
.assets/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
@@ -1,5 +1,6 @@
|
|||||||
displayName: Fossorial Badger
|
displayName: Pangolin (Badger)
|
||||||
type: middleware
|
type: middleware
|
||||||
|
iconPath: .assets/icon.png
|
||||||
|
|
||||||
import: github.com/fosrl/badger
|
import: github.com/fosrl/badger
|
||||||
|
|
||||||
|
|||||||
4
main.go
4
main.go
@@ -194,6 +194,10 @@ func (p *Badger) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
req.Header.Del("Remote-User")
|
||||||
|
req.Header.Del("Remote-Email")
|
||||||
|
req.Header.Del("Remote-Name")
|
||||||
|
|
||||||
if result.Data.ResponseHeaders != nil {
|
if result.Data.ResponseHeaders != nil {
|
||||||
for key, value := range result.Data.ResponseHeaders {
|
for key, value := range result.Data.ResponseHeaders {
|
||||||
rw.Header().Add(key, value)
|
rw.Header().Add(key, value)
|
||||||
|
|||||||
Reference in New Issue
Block a user