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) {
|
||||
binaryInput := strings.ReplaceAll(req.URL.Query().Get("binary"), " ", "")
|
||||
var text string
|
||||
var handle string
|
||||
var err error
|
||||
if binaryInput == "" {
|
||||
utils.Logger.Infof("Got Request for Text to Binary")
|
||||
if binaryInput := strings.ReplaceAll(req.URL.Query().Get("binary"), " ", ""); binaryInput == "" {
|
||||
asciiInput := req.URL.Query().Get("text")
|
||||
if asciiInput == "" {
|
||||
fmt.Fprintf(w, "Could not encode or decode!\n")
|
||||
return
|
||||
}
|
||||
utils.Logger.Infof("Got Request for Text to Binary")
|
||||
text = asciiToBinary(asciiInput)
|
||||
fmt.Fprintf(w, "%v\n", GetFancyResponse(`<center><p>`+text+`</p></center>`, ""))
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user