From 866417bc46b84fb1c69f3b92f0ed7f8cafbff657 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Sun, 19 Jun 2016 10:17:35 +1000 Subject: [PATCH] Fix incorrect header removal length --- main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 25f4326..3410a5d 100644 --- a/main.go +++ b/main.go @@ -2,12 +2,13 @@ package main import ( "fmt" - "github.com/dchest/uniuri" - "github.com/ewhal/pygments" "io" "io/ioutil" "net/http" "os" + + "github.com/dchest/uniuri" + "github.com/ewhal/pygments" ) const ( @@ -45,7 +46,7 @@ func generateName() string { } func save(raw []byte) string { - paste := raw[92 : len(raw)-46] + paste := raw[85 : len(raw)-46] s := generateName() location := DIRECTORY + s