Fix incorrect header removal length
This commit is contained in:
parent
2e92f21e24
commit
866417bc46
7
main.go
7
main.go
|
@ -2,12 +2,13 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/dchest/uniuri"
|
|
||||||
"github.com/ewhal/pygments"
|
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/dchest/uniuri"
|
||||||
|
"github.com/ewhal/pygments"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -45,7 +46,7 @@ func generateName() string {
|
||||||
|
|
||||||
}
|
}
|
||||||
func save(raw []byte) string {
|
func save(raw []byte) string {
|
||||||
paste := raw[92 : len(raw)-46]
|
paste := raw[85 : len(raw)-46]
|
||||||
|
|
||||||
s := generateName()
|
s := generateName()
|
||||||
location := DIRECTORY + s
|
location := DIRECTORY + s
|
||||||
|
|
Loading…
Reference in New Issue