- Apr 27, 2011
-
-
Dmitry Chestnykh authored
Only return page for root path /, return 404 for any other, such as /favicon.ico.
-
Dmitry Chestnykh authored
The server no does nothing for errors other than ErrNotFound (for which it calls http.NotFound). This is becase when getting error on writing, we already wrote headers, so can't respond with status 500. Possibly log errors in future?
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
Also, refactor methods.
-
Dmitry Chestnykh authored
-
- Apr 26, 2011
-
-
Dmitry Chestnykh authored
Also fixes comment typo.
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
- Apr 25, 2011
-
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
Standard storage is now known as memoryStore (created with NewMemoryStore exported function). It's still default, however there's now an option to replace it with a custom store by implementing Store interface and calling SetCustomStore.
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
Fix adding extra space in the generated sounds.go.
-
Dmitry Chestnykh authored
-
- Apr 24, 2011
-
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
Prevoiusly, Expiration and CollectNum were hard-coded into store.go. This change moves these constants to captcha.go (renaming to Std*), and makes newStore accept them as arguments. This will enable setting these paraments by package users sometime in the future, if needed, and also allows testing of the store garbage collection.
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
Plus fix comments.
-
Dmitry Chestnykh authored
-
- Apr 23, 2011
-
-
Dmitry Chestnykh authored
-
Dmitry Chestnykh authored
The new command replaces old test command-line utilities from cmd/image and cmd/audio directories. It can now generate both image and audio captchas, and accepts a few useful flags. Edit .gitignore to reflect changes.
-
Dmitry Chestnykh authored
Audio test cmd now writes to stdout.
-