Fix incorrect header removal length

This commit is contained in:
Eliot Whalan 2016-06-19 10:17:35 +10:00
parent 2e92f21e24
commit 866417bc46
1 changed files with 4 additions and 3 deletions

View File

@ -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