Skip to content

Commit

Permalink
Fix localhost crash and create minor release
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigellute committed Oct 15, 2019
1 parent 7a3a341 commit ca79472
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ documentation = "https://github.com/Rigellute/spotify-tui"
repository = "https://github.com/Rigellute/spotify-tui"
keywords = ["spotify", "tui", "cli", "terminal"]
categories = ["command-line-utilities"]
version = "0.6.0"
version = "0.6.1"
authors = ["Alexander Keliris <rigellute@gmail.com>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
6 changes: 4 additions & 2 deletions build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
# Would be nice to do this on CI rather than manually
version=$1
tar_name="spotify-tui-v${version}.tar.gz"
release_path="target/release/"

echo "Building $version"

cargo build --release

cd target/release
tar -czf $tar_name spt
cp redirect_uri.html $release_path
cd $release_path
tar czf $tar_name spt redirect_uri.html

shasum -a 256 $tar_name

Expand Down
2 changes: 1 addition & 1 deletion src/redirect_uri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn redirect_uri_web_server(thread_reciever: Receiver<()>) {
fn handle_connection(mut stream: TcpStream) {
// The request will be quite large (> 512) so just assign plenty just in case
let mut buffer = [0; 1000];
stream.read_exact(&mut buffer).unwrap();
let _ = stream.read(&mut buffer).unwrap();

let contents = fs::read_to_string("redirect_uri.html").unwrap();

Expand Down

0 comments on commit ca79472

Please sign in to comment.