From fddbe788d5ad89c6c8ed571fe8edfcd0c3521cae Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Fri, 9 Nov 2018 03:12:32 +0200 Subject: [PATCH] [sources] Embedd `favicon.ico` --- sources/cmd/server.go | 13 +- sources/lib/favicon.go | 286 ++++++++++++++++++++++++++++++++++++++ sources/lib/namespaces.go | 2 + 3 files changed, 298 insertions(+), 3 deletions(-) create mode 100644 sources/lib/favicon.go diff --git a/sources/cmd/server.go b/sources/cmd/server.go index 8e68102..dc609fd 100644 --- a/sources/cmd/server.go +++ b/sources/cmd/server.go @@ -51,7 +51,7 @@ func (_server *server) ServeHTTP (_response http.ResponseWriter, _request *http. if _value, _error := _server.cdbReader.Get ([]byte (_key)); _error == nil { if _value != nil { _fingerprint = string (_value) - if ((_namespace == NamespaceFoldersContent) || (_namespace == NamespaceFoldersMetadata)) && (_path == _path_0) { + if ((_namespace == NamespaceFoldersContent) || (_namespace == NamespaceFoldersMetadata)) && (_path == _path_0) && (_path != "/") { _server.ServeRedirect (_response, http.StatusTemporaryRedirect, _path + "/") return } @@ -64,8 +64,15 @@ func (_server *server) ServeHTTP (_response http.ResponseWriter, _request *http. } } if _fingerprint == "" { - log.Printf ("[ww] [7416f61d] not found for `%s`!", _path) - _server.ServeError (_response, http.StatusNotFound, nil) + if _path != "/favicon.ico" { + log.Printf ("[ww] [7416f61d] not found for `%s`!", _path) + _server.ServeError (_response, http.StatusNotFound, nil) + } else { + _data, _dataContentType := FaviconData () + _responseHeaders.Set ("Content-Type", _dataContentType) + _response.WriteHeader (http.StatusOK) + _response.Write (_data) + } return } diff --git a/sources/lib/favicon.go b/sources/lib/favicon.go new file mode 100644 index 0000000..bdeef18 --- /dev/null +++ b/sources/lib/favicon.go @@ -0,0 +1,286 @@ + + +package lib + + +import "encoding/base64" + + + + +func FaviconData () ([]byte, string) { + _data, _ := base64.StdEncoding.DecodeString (FaviconDataBase64) + return _data, "image/vnd.microsoft.icon" +} + + + + +var FaviconDataBase64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gID/gICA/4CAgP+AgID/gICA +/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgIDkgICAaICAgAUAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAFYCAgKeAgID+gICA/4CAgP+AgID/gICA/4CAgP+A +gID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgPyAgID9gICA/4CAgP+AgID/gICA/4CA +gP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA +9ICAgGyAgIABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgIAGgICAkYCAgP6AgID/ +gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA54CAgG2A +gIB1gICA7ICAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CA +gP+AgID/gICA/4CAgP+AgID/gICA/4CAgOeAgIA7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAACAgIBMgICA8oCAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/ +gICA/4CAgP+AgIDogICAVgAAAACAgIACgICAYYCAgO2AgID/gICA/4CAgP+AgID/gICA/4CAgP+A +gID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgICkgICABQAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgAeAgICugICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA +/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgOiAgIBWgYGBAQAAAAAAAAAAgICAAoCAgGGAgIDt +gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+A +gID/gICA/4CAgP+AgIDkgICAJwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgCqAgIDngICA/4CA +gP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA6ICAgFWBgYEBAAAA +AAAAAAAAAAAAAAAAAICAgAKAgIBhgICA7YCAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/ +gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID6gICATwAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAICAgE+AgID6gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CA +gP+AgIDogICAVYGBgQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgIACgICAYYCAgO2AgID/gICA +/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/ +gICAZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgGOAgID/gICA/4CAgP+AgID/gICA/4CAgP+A +gID/gICA/4CAgP+AgID/gICA/4CAgOiAgIBVgICAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAgICAAoCAgGGAgIDtgICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA +/4CAgP+AgID/gICA/4CAgP+AgID/gICAYQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgGGAgID/ +gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA6ICAgFWAgIABAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgAKAgIBhgICA7YCAgP+AgID/gICA/4CA +gP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID3gICARwAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAICAgEmAgID5gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID9 +gICAbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAgICAe4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CA +gP+AgIDagICAHQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgCOAgIDhgICA/4CAgP+AgID/gICA +/4CAgP+AgID/gICA/4CAgP+AgID+gICAgoCAgCOAgIAkgICAJICAgCWAgIAPAAAAAAAAAAAAAAAA +AAAAAICAgBKAgIAlgICAJICAgCSAgIAkgICAjoCAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+A +gID/gICA/4CAgP+AgID/gICA/4CAgP+AgICKgYGBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICA +gASAgIChgICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA+ICAgOeAgIDlgICA +5YCAgOeAgIBiAAAAAAAAAAAAAAAAAAAAAICAgHCAgIDogICA5YCAgOWAgIDngICA+YCAgP+AgID/ +gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgM+AgIAjAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgIA9gICA6oCAgP+AgID/gICA/4CAgP+AgID/gICA/4CA +gP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgIBsAAAAAAAAAAAAAAAAAAAAAICAgHyAgID/gICA +/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/ +gICA3YCAgEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgIACgICAeoCAgPqA +gID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgIBsAAAAAAAA +AAAAAAAAAAAAAICAgHyAgID/gICA/4CAgP+AgID/gICA/4CA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgAmAgIA6gICAboCAgIKAgICDgICA +g4CAgIOAgICDgICAg4CAgIOAgICDgICAg4CAgIOAgICDgICAg4CAgIOAgICDgICAg4CAgIOAgIB/ +gICAXoCAgCGAgIABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgIAogICApYCAgPCA +gID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CA +gP+AgID/gICA/4CAgP+AgID9gICA24CAgGeAgIAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICA +KoCAgMuAgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgPuAgIDXgICA8oCAgP+AgID/ +gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA9YCAgGsAAAAAAAAAAAAAAAAA +AAAAAAAAAICAgAqAgICrgICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID9gICAnICA +gBqAgIBrgICA8YCAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA +3oCAgCgAAAAAAAAAAAAAAAAAAAAAgICAQ4CAgPOAgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/ +gICA/YCAgJyAgIARAAAAAICAgAOAgIBrgICA8YCAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+A +gID/gICA/4CAgP+AgID/gICAagAAAAAAAAAAAAAAAAAAAACAgIB7gICA/4CAgP+AgID/gICA/4CA +gP+AgID/gICA/4CAgP2AgICcgICAEQAAAAAAAAAAAAAAAICAgAOAgIBrgICA8YCAgP+AgID/gICA +/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgICPAAAAAAAAAAAAAAAAAAAAAICAgJGAgID/ +gICA/4CAgP+AgID/gICA/4CAgP+AgID9gICAnICAgBEAAAAAAAAAAAAAAAAAAAAAAAAAAICAgAOA +gIBrgICA8YCAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgIwAAAAAAAAAAAAA +AAAAAAAAgICAhICAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgK+AgIAPAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAICAgAGAgIB3gICA/oCAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID9 +gICAYQAAAAAAAAAAAAAAAAAAAACAgIBSgICA+YCAgP+AgID/gICA/4CAgP+AgID/gICAv4CAgGCA +gIBhgICAUYCAgAkAAAAAAAAAAICAgD2AgIBigICAXoCAgJiAgID9gICA/4CAgP+AgID/gICA/4CA +gP+AgID/gICA/4CAgNCAgIAdAAAAAAAAAAAAAAAAAAAAAICAgBSAgIDDgICA/4CAgP+AgID/gICA +/4CAgP+AgID/gICA/4CAgP+AgIDYgICAGAAAAACBgYEBgICAooCAgP+AgID/gICA/4CAgP+AgID/ +gICA/4CAgP+AgID/gICA/4CAgP+AgIDogICATwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgEWA +gIDlgICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgNiAgIAYAAAAAIGBgQGAgICigICA/4CA +gP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgIDzgICAvoCAgEaAgIABAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAgICAAYCAgEmAgIDNgICA/YCAgP+AgID/gICA/4CAgP+AgID/gICA2ICAgBgAAAAA +gYGBAYCAgKKAgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgIKAgIAMAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgBmAgICngICA/4CAgP+AgID/gICA/4CA +gP+AgIDYgICAGAAAAACBgYEBgICAooCAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgID/gICA +fgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgHaAgID/ +gICA/4CAgP+AgID/gICA/4CAgOKAgIAzgICAE4CAgBqAgIC1gICA/4CAgP+AgID/gICA/4CAgP+A +gID/gICA/4CAgP+AgIBwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAgICATYCAgPmAgID/gICA/4CAgP+AgID/gICA/YCAgOCAgIDUgICA2YCAgPeAgID/gICA +/4CAgP+AgID/gICA/4CAgP+AgID/gICA54CAgDMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAACAgIAXgICAzYCAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+A +gID/gICA/4CAgP+AgID+gICA/ICAgP+AgID/gICA/4CAgPGAgIBugICAAgAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgIBhgICA94CAgP+AgID/gICA +/4CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgM2AgIBogICApICAgL2AgICggICASYCAgAUAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgAiA +gICEgICA94CAgP+AgID/gICA/4CAgP+AgID/gICA/4CAgP+AgIDYgICAPwAAAACAgIADgICACICA +gAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAICAgAiAgIBigICAz4CAgPmAgID/gICA/4CAgP+AgIDugICAp4CA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////// +/////wAA//gAAB/wAAAP4AMAB+AHgAfgD8ADwB/gA8A/8AfgP+AH4AcAD/AHAB/4BwA//AcAf/4H +AH/+AAB//gAA//8AEf//AD///8B////7//////////////////////////////////8oAAAAEAAA +ACAAAAABACAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AACAgIACgICABoCAgAaAgIAGgICABoCAgAaAgIAGgICABoCAgAaAgIAEAAAAAAAAAAAAAAAAAAAA +AICAgAGAgIBAgICAnoCAgLeAgIC3gICAuYCAgLqAgIC4gICAt4CAgLeAgIC4gICArICAgF2AgIAH +AAAAAAAAAACAgIBBgICA5YCAgP+AgID/gICA/4CAgNmAgICfgICA9ICAgP+AgID/gICA/4CAgP+A +gID1gICAYAAAAACAgIADgICAooCAgP+AgID/gICA/4CAgNeAgIA8gICABICAgHWAgID0gICA/4CA +gP+AgID/gICA/4CAgLGAgIAGgICACICAgLeAgID/gICA/4CAgOOAgIBAAAAAAAAAAACAgIAGgICA +fYCAgPyAgID/gICA/4CAgP+AgICugICABQAAAACAgICEgICA/4CAgP+AgIDpgICAq4CAgE+AgIAF +gICAf4CAgLyAgID7gICA/4CAgP+AgIDvgICAVQAAAAAAAAAAgICAHICAgLGAgID7gICA/4CAgP+A +gIB4gICACICAgMWAgID/gICA/4CAgP+AgIDZgICAToCAgAQAAAAAAAAAAAAAAACAgIAUgICAwICA +gP+AgID/gICAiYCAgCKAgIDNgICA/4CAgP+AgID/gICAr4CAgAQAAAAAAAAAAAAAAAAAAAAAAAAA +AICAgIeAgID/gICA/4CAgO6AgIDdgICA+YCAgPqAgID+gICA84CAgGQAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAACAgIAmgICAzICAgP+AgID/gICA/4CAgOmAgIBrgICAXICAgEOAgIAGAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAICAgCeAgICHgICAtICAgJyAgIBCgICAAgAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAAYCAgAWAgIACAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//AAD//wAA//8AAOAHAADAAwAAg4EAAIfB +AACDgwAAwwcAAOEHAADgDwAA8H8AAPj/AAD//wAA//8AAP//AAA= +` + diff --git a/sources/lib/namespaces.go b/sources/lib/namespaces.go index e4fca47..ce786d1 100644 --- a/sources/lib/namespaces.go +++ b/sources/lib/namespaces.go @@ -3,6 +3,8 @@ package lib + + const NamespaceFilesContent = "files:content" const NamespaceFoldersContent = "folders:content" const NamespaceFoldersMetadata = "folders:metadata"