mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2020-11-18 19:53:40 -08:00
trivial spelling fixes
This commit is contained in:
parent
c53c3be577
commit
af2273c07e
@ -180,7 +180,7 @@ func notFoundHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
func postHandler(w http.ResponseWriter, r *http.Request) {
|
func postHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
if err := r.ParseMultipartForm(_24K); nil != err {
|
if err := r.ParseMultipartForm(_24K); nil != err {
|
||||||
log.Printf("%s", err.Error())
|
log.Printf("%s", err.Error())
|
||||||
http.Error(w, "Error occured copying to output stream", 500)
|
http.Error(w, "Error occurred copying to output stream", 500)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -573,7 +573,7 @@ func getHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
if _, err = io.Copy(w, reader); err != nil {
|
if _, err = io.Copy(w, reader); err != nil {
|
||||||
log.Printf("%s", err.Error())
|
log.Printf("%s", err.Error())
|
||||||
http.Error(w, "Error occured copying to output stream", 500)
|
http.Error(w, "Error occurred copying to output stream", 500)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ this.makeHtml = function(text) {
|
|||||||
|
|
||||||
// attacklab: Replace ~ with ~T
|
// attacklab: Replace ~ with ~T
|
||||||
// This lets us use tilde as an escape char to avoid md5 hashes
|
// This lets us use tilde as an escape char to avoid md5 hashes
|
||||||
// The choice of character is arbitray; anything that isn't
|
// The choice of character is arbitrary; anything that isn't
|
||||||
// magic in Markdown will work.
|
// magic in Markdown will work.
|
||||||
text = text.replace(/~/g,"~T");
|
text = text.replace(/~/g,"~T");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user