added error log
This commit is contained in:
parent
1ab8f49b77
commit
3b0d0e0836
@ -87,17 +87,16 @@ func instagramHandleExists(username string, bypass ...bool) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BinaryHandler(w http.ResponseWriter, req *http.Request) {
|
func BinaryHandler(w http.ResponseWriter, req *http.Request) {
|
||||||
binaryInput := strings.ReplaceAll(req.URL.Query().Get("binary"), " ", "")
|
|
||||||
var text string
|
var text string
|
||||||
var handle string
|
var handle string
|
||||||
var err error
|
var err error
|
||||||
if binaryInput == "" {
|
if binaryInput := strings.ReplaceAll(req.URL.Query().Get("binary"), " ", ""); binaryInput == "" {
|
||||||
utils.Logger.Infof("Got Request for Text to Binary")
|
|
||||||
asciiInput := req.URL.Query().Get("text")
|
asciiInput := req.URL.Query().Get("text")
|
||||||
if asciiInput == "" {
|
if asciiInput == "" {
|
||||||
fmt.Fprintf(w, "Could not encode or decode!\n")
|
fmt.Fprintf(w, "Could not encode or decode!\n")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
utils.Logger.Infof("Got Request for Text to Binary")
|
||||||
text = asciiToBinary(asciiInput)
|
text = asciiToBinary(asciiInput)
|
||||||
fmt.Fprintf(w, "%v\n", GetFancyResponse(`<center><p>`+text+`</p></center>`, ""))
|
fmt.Fprintf(w, "%v\n", GetFancyResponse(`<center><p>`+text+`</p></center>`, ""))
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user